//
//  SEGVisitorAccessHistoryViewCell.m
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/5/12.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import "SEGVisitorAccessHistoryViewCell.h"

@implementation SEGVisitorAccessHistoryViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI
{
    self.backgroundColor = kColor_W;

    UILabel *nameLable = [[UILabel alloc] init];
    nameLable.font = kFont_16;
    nameLable.textColor = kColor_1;
    nameLable.backgroundColor = UIColor.clearColor;
    [self.contentView addSubview:nameLable];
    [nameLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).with.offset(15);
        make.right.mas_offset(-15);
        make.top.equalTo(self.contentView).with.offset(13);
    }];
    self.nameLable = nameLable;
    
    UILabel *lable = [[UILabel alloc] init];
    lable.font = kFont_13;
    lable.textColor = kColor_3;
    [self.contentView addSubview:lable];
    lable.backgroundColor = UIColor.clearColor;
    [lable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).with.offset(15);
        make.bottom.equalTo(self.contentView).with.offset(-13);
    }];
    self.timeLabel = lable;
}

@end
